<?php
	require_once ("../inc/conn.php");
	$page = safeData("page","get");
	$topicID = safeData("topicid","get");
	if (isDynamic()){
		$CacheName = "arttopicindex";
		$CacheNameTempLate = "template_arttopic";
		$TempLatePath = $root."template/".app_templatedir."/".app_htmldir."/arttopic.html";
		$template->TopicIndexShareLabel ($CacheName,$CacheNameTempLate,$TempLatePath);
		$template->topicpagelist();
		$template->replaceLast();
		echo $template->html;
		dispseObj();
	}
	else{
		header("Location:" . getTopicLink("art"));
	}
?>